<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="generator" content="VuePress 2.0.0-beta.36">
    <style>
      :root {
        --c-bg: #fff;
      }
      html.dark {
        --c-bg: #22272e;
      }
      html, body {
        background-color: var(--c-bg);
      }
    </style>
    <script>
      const userMode = localStorage.getItem('vuepress-color-scheme');
			const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
			if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
				document.documentElement.classList.toggle('dark', true);
			}
    </script>
    <link rel="icon" href="https://www.mindskip.net/style/images/favicon.png"><title>4.2 小程序 | 学之思教程</title><meta name="description" content="学之思开发部署教程">
    <link rel="modulepreload" href="/uexam/assets/app.2b468f9a.js"><link rel="modulepreload" href="/uexam/assets/wx.html.a640d2fb.js"><link rel="modulepreload" href="/uexam/assets/wx.html.4430c49d.js"><link rel="modulepreload" href="/uexam/assets/plugin-vue_export-helper.21dcd24c.js">
    <link rel="stylesheet" href="/uexam/assets/style.f347c1cc.css">
  </head>
  <body>
    <div id="app"><!--[--><div class="theme-container"><!--[--><header ref_key="navbar" class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/uexam/" class=""><img class="logo" src="/uexam/images/logo/logo.png" alt="学之思教程"><span class="site-name can-hide">学之思教程</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net" rel="noopener noreferrer" target="_blank" aria-label="官网"><!--[--><!--]--> 官网 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/sdd.html" rel="noopener noreferrer" target="_blank" aria-label="思多多"><!--[--><!--]--> 思多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/wdd.html" rel="noopener noreferrer" target="_blank" aria-label="维多多"><!--[--><!--]--> 维多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/xzs.html" rel="noopener noreferrer" target="_blank" aria-label="学之思"><!--[--><!--]--> 学之思 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/buy.html" rel="noopener noreferrer" target="_blank" aria-label="商业购买"><!--[--><!--]--> 商业购买 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-dark-button" title="toggle dark mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net" rel="noopener noreferrer" target="_blank" aria-label="官网"><!--[--><!--]--> 官网 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/sdd.html" rel="noopener noreferrer" target="_blank" aria-label="思多多"><!--[--><!--]--> 思多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/wdd.html" rel="noopener noreferrer" target="_blank" aria-label="维多多"><!--[--><!--]--> 维多多 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/xzs.html" rel="noopener noreferrer" target="_blank" aria-label="学之思"><!--[--><!--]--> 学之思 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://www.mindskip.net/buy.html" rel="noopener noreferrer" target="_blank" aria-label="商业购买"><!--[--><!--]--> 商业购买 <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><a href="/uexam/guide/feature.html" class="sidebar-item sidebar-heading" aria-label="1. 功能列表"><!--[--><!--]--> 1. 功能列表 <!--[--><!--]--></a><!----></li><li><a href="/uexam/guide/skill.html" class="sidebar-item sidebar-heading" aria-label="2. 技术栈"><!--[--><!--]--> 2. 技术栈 <!--[--><!--]--></a><!----></li><li><a href="/uexam/guide/database.html" class="sidebar-item sidebar-heading" aria-label="3. 数据库设计"><!--[--><!--]--> 3. 数据库设计 <!--[--><!--]--></a><!----></li><li><p tabindex="0" class="sidebar-item sidebar-heading active">4. 接口文档 <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a href="/uexam/guide/student.html" class="sidebar-item" aria-label="4.1 学生端"><!--[--><!--]--> 4.1 学生端 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html" class="router-link-active router-link-exact-active router-link-active sidebar-item active" aria-label="4.2 小程序"><!--[--><!--]--> 4.2 小程序 <!--[--><!--]--></a><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-1-登录" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.1 登录"><!--[--><!--]--> 4.2.1 登录 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-2-注册" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.2 注册"><!--[--><!--]--> 4.2.2 注册 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-3-检查绑定" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.3 检查绑定"><!--[--><!--]--> 4.2.3 检查绑定 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-3-解绑退出" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.3 解绑退出"><!--[--><!--]--> 4.2.3 解绑退出 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-3-主页试卷列表" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.3 主页试卷列表"><!--[--><!--]--> 4.2.3 主页试卷列表 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-4-任务中心" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.4 任务中心"><!--[--><!--]--> 4.2.4 任务中心 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-4-试卷列表" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.4 试卷列表"><!--[--><!--]--> 4.2.4 试卷列表 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-5-试卷查询" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.5 试卷查询"><!--[--><!--]--> 4.2.5 试卷查询 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-6-答卷列表" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.6 答卷列表"><!--[--><!--]--> 4.2.6 答卷列表 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-7-试卷提交" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.7 试卷提交"><!--[--><!--]--> 4.2.7 试卷提交 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-8-获取当前用户信息" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.8 获取当前用户信息"><!--[--><!--]--> 4.2.8 获取当前用户信息 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-9-用户信息更新" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.9 用户信息更新"><!--[--><!--]--> 4.2.9 用户信息更新 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-10-用户动态" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.10 用户动态"><!--[--><!--]--> 4.2.10 用户动态 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-11-消息列表" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.11 消息列表"><!--[--><!--]--> 4.2.11 消息列表 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-2-12-消息详情" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.2.12 消息详情"><!--[--><!--]--> 4.2.12 消息详情 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-1-13-消息未读数" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.1.13 消息未读数"><!--[--><!--]--> 4.1.13 消息未读数 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/uexam/guide/wx.html#_4-1-14-消息标记已读" class="router-link-active router-link-exact-active sidebar-item" aria-label="4.1.14 消息标记已读"><!--[--><!--]--> 4.1.14 消息标记已读 <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><a href="/uexam/guide/admin.html" class="sidebar-item" aria-label="4.3 管理端"><!--[--><!--]--> 4.3 管理端 <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><li><a href="/uexam/guide/develop.html" class="sidebar-item sidebar-heading" aria-label="5. 项目开发"><!--[--><!--]--> 5. 项目开发 <!--[--><!--]--></a><!----></li><li><a href="/uexam/guide/deploy.html" class="sidebar-item sidebar-heading" aria-label="6. 项目部署"><!--[--><!--]--> 6. 项目部署 <!--[--><!--]--></a><!----></li><li><a href="/uexam/guide/video.html" class="sidebar-item sidebar-heading" aria-label="7. 视频教程"><!--[--><!--]--> 7. 视频教程 <!--[--><!--]--></a><!----></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><h1 id="_4-2-小程序" tabindex="-1"><a class="header-anchor" href="#_4-2-小程序" aria-hidden="true">#</a> 4.2 小程序</h1><h3 id="_4-2-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-2-1-登录" aria-hidden="true">#</a> 4.2.1 登录</h3><ul><li>接口地址：/api/wx/student/auth/bind</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>     userName: student  //用户名
     password: 123456   //密码
     code: 023BNuFa1CQ14B07KVHa16RHM94BNuF0   //授权码
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: &quot;950efd96-ecd1-4482-9204-c54cd3325a8a&quot;  //登录Token
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-2-2-注册" tabindex="-1"><a class="header-anchor" href="#_4-2-2-注册" aria-hidden="true">#</a> 4.2.2 注册</h3><ul><li>接口地址：/api/wx/student/user/register</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    userName: student2  //用户名
    password: 123456 //密码
    userLevel: 1   //年级
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: null
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-2-3-检查绑定" tabindex="-1"><a class="header-anchor" href="#_4-2-3-检查绑定" aria-hidden="true">#</a> 4.2.3 检查绑定</h3><ul><li>接口地址：/api/wx/student/user/register</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    code: 063MMx000eoAnM15Tj400hq8l64MMx0Z  //令牌
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: &quot;2fa8cbb7-6be9-4e54-bc68-1265348cf703&quot;  //登录令牌
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-2-3-解绑退出" tabindex="-1"><a class="header-anchor" href="#_4-2-3-解绑退出" aria-hidden="true">#</a> 4.2.3 解绑退出</h3><ul><li>接口地址：/api/wx/student/auth/unBind</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: null
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-2-3-主页试卷列表" tabindex="-1"><a class="header-anchor" href="#_4-2-3-主页试卷列表" aria-hidden="true">#</a> 4.2.3 主页试卷列表</h3><ul><li>接口地址：/api/wx/student/dashboard/index</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;fixedPaper&quot;: [  //固定试卷
            {
                &quot;id&quot;: 51,  //试卷id
                &quot;name&quot;: &quot;aaa&quot;,  //试卷名称
                &quot;limitStartTime&quot;: null,
                &quot;limitEndTime&quot;: null
            }
        ],
        &quot;timeLimitPaper&quot;: [  //时段试卷
            {
                &quot;id&quot;: 51,  //试卷id
                &quot;name&quot;: &quot;202008705&quot;,  //试卷名称
                &quot;limitStartTime&quot;: 1600704000000,
                &quot;limitEndTime&quot;: 1664985600000,
                &quot;startTime&quot;: &quot;2020-09-22 00:00:00&quot;,  //考试开始时间
                &quot;endTime&quot;: &quot;2022-10-06 00:00:00&quot;  //考试结束时间
            }
        ],
        &quot;classPaper&quot;: [  //班级试卷
            {
                &quot;paperId&quot;: 21,  //试卷id
                &quot;paperName&quot;: &quot;20200908&quot;,  //试卷名称
                &quot;className&quot;: &quot;1班&quot;  //班级
            }
        ]
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br></div></div><h3 id="_4-2-4-任务中心" tabindex="-1"><a class="header-anchor" href="#_4-2-4-任务中心" aria-hidden="true">#</a> 4.2.4 任务中心</h3><ul><li>接口地址：/api/wx/student/dashboard/index</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: [
        {
            &quot;id&quot;: 51,
            &quot;title&quot;: &quot;基础任务&quot;, //任务标题
            &quot;paperItems&quot;: [
                {
                    &quot;examPaperId&quot;: 19,  //试卷id
                    &quot;examPaperName&quot;: &quot;基础任务一&quot;,  //试卷名称
                    &quot;examPaperAnswerId&quot;: 9,  //答卷id
                    &quot;status&quot;: 2 //答卷状态
                }
            ]
        }
    ]
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><h3 id="_4-2-4-试卷列表" tabindex="-1"><a class="header-anchor" href="#_4-2-4-试卷列表" aria-hidden="true">#</a> 4.2.4 试卷列表</h3><ul><li>接口地址：/api/wx/student/exam/paper/pageList</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    paperType: 1,  //试卷类型
    pageIndex: 1,  //页码
    pageSize: 20  //每页数量
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;total&quot;: 9,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 51,
                &quot;name&quot;: &quot;固定试卷&quot;, //试卷名称
                &quot;questionCount&quot;: 1, //题目数量
                &quot;score&quot;: 50, //分数
                &quot;createTime&quot;: &quot;2021-09-10 16:06:45&quot;, //创建时间
                &quot;createUser&quot;: 2, //创建人
                &quot;subjectId&quot;: 4, //学科
                &quot;subjectName&quot;: &quot;语文&quot;, //学科名称
                &quot;paperType&quot;: 1, //试卷类型
                &quot;frameTextContentId&quot;: 294,  试卷内容
                &quot;startTime&quot;: &quot;&quot;,  //考试开始时间
                &quot;endTime&quot;: &quot;&quot;, //考试结束时间
                &quot;paperTypeStr&quot;: &quot;固定试卷&quot;, //试卷类型
                &quot;scoreStr&quot;: &quot;5&quot;, //分数
                &quot;suggestTimeStr&quot;: &quot;20分钟&quot; //考试时长
            }
        ]
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br></div></div><h3 id="_4-2-5-试卷查询" tabindex="-1"><a class="header-anchor" href="#_4-2-5-试卷查询" aria-hidden="true">#</a> 4.2.5 试卷查询</h3><ul><li>接口地址：/api/wx/student/exam/paper/select/24</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;id&quot;: 51, //试卷id
        &quot;level&quot;: 1,  //年级
        &quot;subjectId&quot;: 4,  //学科
        &quot;paperType&quot;: 1,  //试卷类型
        &quot;name&quot;: &quot;20200912卷&quot;,  //试卷名称
        &quot;suggestTime&quot;: 30,  //考试时长
        &quot;limitDateTime&quot;: null,  
        &quot;titleItems&quot;: [ //标题
            {
                &quot;name&quot;: &quot;一、解答题&quot;,  //标题名称
                &quot;questionItems&quot;: [  //题目列表
                    {
                        &quot;id&quot;: 51,  //题目id
                        &quot;questionType&quot;: 1, //题目类型
                        &quot;subjectId&quot;: 4, //学科
                        &quot;title&quot;: &quot;中华四大名著都有哪些，下列正确的是&quot;,  //题干
                        &quot;gradeLevel&quot;: 1, //年级
                        &quot;items&quot;: [  //选项
                            {
                                &quot;prefix&quot;: &quot;A&quot;,  //选项标识
                                &quot;content&quot;: &quot;红楼梦&quot;,  //选项内容
                                &quot;score&quot;: null //分数
                            }
                        ],
                        &quot;analyze&quot;: &quot;题目比较简单，自行分析&quot;, //解析
                        &quot;correctArray&quot;: null,  //标答
                        &quot;correct&quot;: &quot;A&quot;,  //标答
                        &quot;score&quot;: &quot;2.5&quot;, //得分
                        &quot;difficult&quot;: 3, //难度
                        &quot;itemOrder&quot;: 1, //题目排序
                        &quot;knowledgeIdList&quot;: [ //题目知识点
                            8,
                            9
                        ]
                    }
                ]
            }
        ],
        &quot;score&quot;: &quot;20&quot;, //试卷得分
        &quot;classes&quot;: null //班级
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br><span class="line-number">43</span><br><span class="line-number">44</span><br><span class="line-number">45</span><br><span class="line-number">46</span><br></div></div><h3 id="_4-2-6-答卷列表" tabindex="-1"><a class="header-anchor" href="#_4-2-6-答卷列表" aria-hidden="true">#</a> 4.2.6 答卷列表</h3><ul><li>接口地址：/api/wx/student/exam/paper/pageList</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    pageIndex: 1,  //页码
    pageSize: 20  //每页数量
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;total&quot;: 248,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 262,
                &quot;createTime&quot;: &quot;2021-09-15 14:42:22&quot;,  //提交时间
                &quot;userScore&quot;: &quot;0&quot;,  //得分
                &quot;subjectName&quot;: &quot;语文&quot;, //学科
                &quot;subjectId&quot;: 4, //学科
                &quot;questionCount&quot;: 2, //题目数量
                &quot;questionCorrect&quot;: 1, //正确题数
                &quot;paperScore&quot;: &quot;1&quot;, //试卷总分
                &quot;doTime&quot;: &quot;2秒&quot;, //耗时
                &quot;paperType&quot;: 7, //试卷类型
                &quot;paperTypeStr&quot;: &quot;随机试卷&quot;, //试卷类型
                &quot;systemScore&quot;: &quot;0&quot;, //自动批改得分
                &quot;status&quot;: 2, //状态
                &quot;paperName&quot;: &quot;智能训练试卷 - 51&quot;, //试卷名称
                &quot;userName&quot;: null
            }
        ]
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br></div></div><h3 id="_4-2-7-试卷提交" tabindex="-1"><a class="header-anchor" href="#_4-2-7-试卷提交" aria-hidden="true">#</a> 4.2.7 试卷提交</h3><ul><li>接口地址：/api/wx/student/exampaper/answer/answerSubmit</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    &quot;1_42_1&quot;: &quot;A&quot; //答题信息
    &quot;id&quot;: &quot;78&quot; //试卷id
    &quot;doTime&quot;: 3  //耗时
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: &quot;0&quot;
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-2-8-获取当前用户信息" tabindex="-1"><a class="header-anchor" href="#_4-2-8-获取当前用户信息" aria-hidden="true">#</a> 4.2.8 获取当前用户信息</h3><ul><li>接口地址：/api/wx/student/user/current</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;id&quot;: 51,
        &quot;userUuid&quot;: &quot;d2d29da2-dcb3-4013-b874-727626236f47&quot;, //用户uuid
        &quot;userName&quot;: &quot;student&quot;, //用户名
        &quot;realName&quot;: &quot;学生&quot;, //真实姓名
        &quot;age&quot;: 18, //年龄
        &quot;role&quot;: 1, //角色
        &quot;sex&quot;: 1, //性别
        &quot;birthDay&quot;: &quot;2019-09-17&quot;, //生日
        &quot;phone&quot;: &quot;158800882&quot;, //手机号
        &quot;lastActiveTime&quot;: &quot;&quot;,
        &quot;createTime&quot;: &quot;2019-09-07 18:55:02&quot;, //创建时间
        &quot;modifyTime&quot;: &quot;2021-09-15 18:38:34&quot;, //修改时间
        &quot;status&quot;: 1, //状态
        &quot;userLevel&quot;: 1, //年级
        &quot;userLevelStr&quot;: &quot;一年级&quot;, //年级
        &quot;classes&quot;: &quot;1班&quot;, //班级
        &quot;imagePath&quot;: &quot;&quot; //用户头像
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br></div></div><h3 id="_4-2-9-用户信息更新" tabindex="-1"><a class="header-anchor" href="#_4-2-9-用户信息更新" aria-hidden="true">#</a> 4.2.9 用户信息更新</h3><ul><li>接口地址：/api/wx/student/user/update</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    &quot;realName&quot;: &quot;学生&quot;,  //真实姓名
    &quot;age&quot;: 18, //年龄
    &quot;sex&quot;: &quot;1&quot;, //性别
    &quot;birthDay&quot;: &quot;2019-09-17&quot;,  //出生日期
    &quot;phone&quot;: &quot;158800882&quot; //手机号
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;id&quot;: 51,
        &quot;userUuid&quot;: &quot;d2d29da2-dcb3-4013-b874-727626236f47&quot;,  //用户uuid
        &quot;userName&quot;: &quot;student&quot;, //用户名
        &quot;realName&quot;: &quot;学生&quot;,  //真实姓名
        &quot;age&quot;: 18, //年龄
        &quot;role&quot;: 1, //角色
        &quot;sex&quot;: 1, //性别
        &quot;birthDay&quot;: &quot;2019-09-17 00:00:00&quot;, //出生日期
        &quot;phone&quot;: &quot;158800882&quot;, //手机号
        &quot;lastActiveTime&quot;: &quot;&quot;, //最好活动时间
        &quot;createTime&quot;: &quot;2019-09-07 18:55:02&quot;, //创建时间
        &quot;modifyTime&quot;: &quot;2021-09-23 21:20:34&quot;, //修改时间
        &quot;status&quot;: 1, //状态
        &quot;userLevel&quot;: 1, //年级
        &quot;userLevelStr&quot;: null,  //年级
        &quot;classes&quot;: null, //班级
        &quot;imagePath&quot;: &quot;&quot; //头像
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br></div></div><h3 id="_4-2-10-用户动态" tabindex="-1"><a class="header-anchor" href="#_4-2-10-用户动态" aria-hidden="true">#</a> 4.2.10 用户动态</h3><ul><li>接口地址：/api/wx/student/user/log</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: [
        {
            &quot;id&quot;: 6136,  
            &quot;userId&quot;: 1, //用户id
            &quot;userName&quot;: &quot;student&quot;, //用户名
            &quot;realName&quot;: &quot;学生&quot;, //真实姓名
            &quot;content&quot;: &quot;student 登录了学之思开源考试系统&quot;, //日志内容
            &quot;createTime&quot;: &quot;2021-09-24 21:52:05&quot; //创建时间
        }
    ]
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br></div></div><h3 id="_4-2-11-消息列表" tabindex="-1"><a class="header-anchor" href="#_4-2-11-消息列表" aria-hidden="true">#</a> 4.2.11 消息列表</h3><ul><li>接口地址：/api/wx/student/user/message/page</li><li>请求参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>    pageIndex: 1,  //页码
    pageSize: 20   //每页数量
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><ul><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;total&quot;: 7,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 51, //消息
                &quot;title&quot;: &quot;国庆假说明&quot;,  //消息标题
                &quot;messageId&quot;: 17,  //消息id
                &quot;content&quot;: &quot;假期七天请注意安全。。。&quot;,  //消息内容
                &quot;readed&quot;: true, //是否已读
                &quot;createTime&quot;: &quot;2021-09-25 14:51:32&quot;, //创建时间
                &quot;sendUserName&quot;: &quot;admin&quot; //发送人用户名
            }
        ]
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><h3 id="_4-2-12-消息详情" tabindex="-1"><a class="header-anchor" href="#_4-2-12-消息详情" aria-hidden="true">#</a> 4.2.12 消息详情</h3><ul><li>接口地址：/api/wx/student/user/message/read/26</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: {
        &quot;id&quot;: 51,
        &quot;title&quot;: &quot;国庆假说明&quot;,  //消息标题
        &quot;content&quot;: &quot;假期七天请注意安全。。。&quot;,  //消息内容
        &quot;createTime&quot;: &quot;2021-09-25 14:51:32&quot;,  //创建时间
        &quot;sendUserId&quot;: 2, //发送人id
        &quot;sendUserName&quot;: &quot;admin&quot;, //发送人用户名
        &quot;sendRealName&quot;: &quot;管理员&quot;, //发送人真实姓名
        &quot;receiveUserCount&quot;: 4,
        &quot;readCount&quot;: 1 
    }
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br></div></div><h3 id="_4-1-13-消息未读数" tabindex="-1"><a class="header-anchor" href="#_4-1-13-消息未读数" aria-hidden="true">#</a> 4.1.13 消息未读数</h3><ul><li>接口地址：/api/wx/student/user/message/unreadCount</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: 0  //未读消息数量
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><h3 id="_4-1-14-消息标记已读" tabindex="-1"><a class="header-anchor" href="#_4-1-14-消息标记已读" aria-hidden="true">#</a> 4.1.14 消息标记已读</h3><ul><li>接口地址：/api/wx/student/user/message/read/14</li><li>请求参数：无</li><li>返回参数：</li></ul><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>{
    &quot;code&quot;: 1,
    &quot;message&quot;: &quot;成功&quot;,
    &quot;response&quot;: null
}
</code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">上次更新: </span><!----></div><!----></footer><nav class="page-nav"><p class="inner"><span class="prev"><a href="/uexam/guide/student.html" class="" aria-label="4.1 学生端"><!--[--><!--]--> 4.1 学生端 <!--[--><!--]--></a></span><span class="next"><a href="/uexam/guide/admin.html" class="" aria-label="4.3 管理端"><!--[--><!--]--> 4.3 管理端 <!--[--><!--]--></a></span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
    <script type="module" src="/uexam/assets/app.2b468f9a.js" defer></script>
  </body>
</html>
